package tr.edu.metu.is550.isell.rest.message;


import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "property")
public class UpdatePropertyMessage {

    @XmlElement
    @NotNull
    @Size(min = 1, max = 500, message = "invalid.size")
    private String title;

    @XmlElement
    @Size(min = 1, max = 4000, message = "invalid.size")
    private String details;

    @XmlElement
    @Size(min = 1, max = 4000, message = "invalid.size")
    private String address;


    @XmlElement
    @NotNull
    private Double price;

    @XmlElement
    @NotNull
    private Integer adtype;

    @XmlElement
    @NotNull
    private Integer propertyType;

    @XmlElement
    @NotNull
    private Integer numberOfRooms;

    @XmlElement
    @NotNull
    private Double latitude;


    @XmlElement
    @NotNull
    private Double longitude;


    public String getTitle() {
        return title;
    }

    public String getDetails() {
        return details;
    }

    public String getAddress() {
        return address;
    }

    public Double getPrice() {
        return price;
    }

    public Integer getAdtype() {
        return adtype;
    }

    public Integer getPropertyType() {
        return propertyType;
    }

    public Integer getNumberOfRooms() {
        return numberOfRooms;
    }


    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }
}
